package com.markchu.modules.system.service;

import com.markchu.modules.system.domain.ActionLog;
import com.markchu.modules.system.domain.Upload;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author mark_chu
 * @date 2018/11/02
 */
public interface UploadService {
    Page<Upload> getPageList(Example<Upload> example);
    Long counts(Example<Upload> example);
    public void updateUpload(Upload upload);

    public void updateStatus(Long status,Long id);

    void updateAcIdByUpload(Long activityId, Long[] fileId);
    public Upload findById(Long id);

    /**
     * 获取文件sha1值的记录
     * @param sha1 文件sha1值
     * @return 文件信息
     */

    Upload getBySha1(String sha1);

    /**
     * 保存文件上传
     * @param upload 文件上传实体类
     * @return 文件信息
     */
    Upload save(Upload upload);


}

